<?php
    session_start();
?>
<!DOCTYPE html>
<html>
    <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="css/default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="js/notification.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.notification.sticky').notify();
            $('.button').click(function () {
                $('.notification').removeClass('hide').addClass('hide').removeClass('visible');
                $('.notification.' + $(this).attr('id') + '').notify({ type: $(this).attr('id') });

            });

        });
    </script>
        <title>JSP Page</title>
<style type="text/css">
			/*demo page css*/
			body{ font: 90% "Trebuchet MS", sans-serif}
			
		
.info, .success, .warning, .error, .validation {
  border: 1px solid;
  margin: 10px 0px;
  padding:15px 10px 15px 50px;
  background-repeat: no-repeat;
  background-position: 10px center;
}
.info {
  color: #00529B;
  background-color: #BDE5F8;
  background-image: url('info.png');
}
.success {
  color: #4F8A10;
  background-color: #DFF2BF;
  background-image:url('images/success.png');
}
.warning {
  color: #9F6000;
  background-color: #FEEFB3;
  background-image: url('warning.png');
}
.error {
  color: #D8000C;
  background-color: #FFBABA;
  background-image: url('images/error.png');
}
</style>



<script type="text/JavaScript">

setTimeout("location.href = '<?php echo $_SESSION['pag']; ?>';",1000*2);

</script>

    </head>
    <body>
        <?php if($_SESSION['color']=="greenyellow") 
        {
            ?>
        <div class="notification sticky hide">
        <div  class="success"><?php echo $_SESSION['mensaje']; ?></div>
        </div>
       <?php
        }else{
?>
       <div class="notification sticky hide">
        <div class="error"><?php echo $_SESSION['mensaje']; ?></div>
          <?php }?>     
       </div>
        <?php 
        $_SESSION['pag'] = null;
        $_SESSION['color'] = null;
        $_SESSION['mensaje'] = null;
        ?>
    </body>
</html>